<!doctype html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <meta name="author" content="Fresns" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="generator" content="Bootstrap 5">
    <title>Fresns 控制台</title>
    <link rel="stylesheet" href="../assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="../assets/css/bootstrap-icons.css">
    <link rel="stylesheet" href="../assets/css/backend.css">
</head>

<body>
    <header>
        <nav class="navbar navbar-expand-lg navbar-dark" style="background-color:#7952b3;">
            <div class="container-lg">
                <a class="navbar-brand" href="dashboard.html"><img src="../assets/images/fresns-logo-white.png" height="40"></a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarContent">
                    <div class="dropdown">
                        <button class="btn btn-outline-light btn-sm dropdown-toggle" type="button" id="language" data-bs-toggle="dropdown" aria-expanded="false"><i class="bi bi-translate"></i> 简体中文 - Chinese (Simplified)</button>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="#">English - English</a></li>
                            <li><a class="dropdown-item" href="#">Español - Spanish</a></li>
                            <li><a class="dropdown-item" href="#">Français - French</a></li>
                            <li><a class="dropdown-item" href="#">日本語 - Japanese</a></li>
                            <li><a class="dropdown-item" href="#">한국어 - Korean</a></li>
                            <li><a class="dropdown-item" href="#">Русский - Russian</a></li>
                            <li><a class="dropdown-item" href="#">Português - Portuguese</a></li>
                            <li><a class="dropdown-item" href="#">Bahasa Indonesia - Indonesian</a></li>
                            <li><a class="dropdown-item" href="#">简体中文 - Chinese (Simplified)</a></li>
                            <li><a class="dropdown-item" href="#">繁體中文 - Chinese (Traditional)</a></li>
                        </ul>
                        <a class="btn btn-warning btn-sm ms-1" href="index.html" role="button" data-bs-toggle="tooltip" data-bs-placement="right" title="退出登录"><i class="bi bi-power"></i></a>
                    </div>
                    <ul class="navbar-nav d-flex flex-row ms-auto">
                        <li class="px-2">
                            <a href="dashboard.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-speedometer2 fresns-nav-icon"></i>
                                <span class="fresns-nav-name">仪表盘</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="settings.html" class="nav-link d-flex flex-column align-items-center active">
                                <i class="bi bi-gear fresns-nav-icon"></i>
                                <span class="fresns-nav-name">设置</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="keys.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-key fresns-nav-icon"></i>
                                <span class="fresns-nav-name">密钥</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="admins.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-sliders fresns-nav-icon"></i>
                                <span class="fresns-nav-name">管理</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="websites.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-laptop fresns-nav-icon"></i>
                                <span class="fresns-nav-name">网站</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="apps.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-phone fresns-nav-icon"></i>
                                <span class="fresns-nav-name">应用</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="plugins.html" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-journal-code fresns-nav-icon"></i>
                                <span class="fresns-nav-name">插件</span>
                            </a>
                        </li>
                        <li class="px-2">
                            <a href="https://fresns.store" target="_blank" class="nav-link d-flex flex-column align-items-center">
                                <i class="bi bi-shop-window fresns-nav-icon"></i>
                                <span class="fresns-nav-name">商店</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>

    <main>
        <div class="container-lg p-0 p-lg-3">
            <div class="bg-body shadow-sm mt-4 mt-lg-2 p-3 p-lg-5">
                <div class="row">
                    <div class="col-lg-5">
                        <h3>控制台设置</h3>
                        <p class="text-secondary">Fresns 后端控制台系统设置</p>
                        <form>
                            <div class="input-group mb-3">
                                <span class="input-group-text">后端地址</span>
                                <input type="url" class="form-control border-end-0" placeholder="https://abc.com">
                                <span class="input-group-text bg-body border-start-0" data-bs-toggle="tooltip" data-bs-placement="top" title="主程序 API 和插件默认访问地址，结尾不带 /"><i class="bi bi-info-circle"></i></span>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text">安全入口</span>
                                <input type="text" class="form-control border-end-0" placeholder="admin">
                                <span class="input-group-text bg-body border-start-0" data-bs-toggle="tooltip" data-bs-placement="top" title="设置后只能通过指定安全入口登录控制台"><i class="bi bi-info-circle"></i></span>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text">控制台入口网址</span>
                                <span class="form-control bg-body">https://abc.com/fresns/admin</span>
                                <button class="btn btn-outline-secondary" type="button" id="button-addon1">复制</button>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text">主站地址</span>
                                <input type="url" class="form-control border-end-0" placeholder="https://">
                                <span class="input-group-text bg-body border-start-0" data-bs-toggle="tooltip" data-bs-placement="top" title="主网站运行地址（集成部署或独立部署），结尾不带 /"><i class="bi bi-info-circle"></i></span>
                            </div>
                            <button type="submit" class="btn btn-primary">保存设置</button>
                        </form>
                    </div>
                    <div class="col-lg-1 mb-5"></div>
                    <div class="col-lg-5">
                        <h3>系统管理员</h3>
                        <p class="text-secondary">有权登录控制台的管理员</p>
                        <div class="table-responsive">
                            <table class="table table-hover align-middle text-nowrap">
                                <thead>
                                    <tr class="table-info">
                                        <th scope="col">UID</th>
                                        <th scope="col">账号</th>
                                        <th scope="col">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>
                                            <span class="badge bg-light text-dark"><i class="bi bi-envelope"></i> jar***@foxmail.com</span>
                                            <span class="badge bg-light text-dark"><i class="bi bi-phone"></i> +86 139****5678</span>
                                        </td>
                                        <td class="text-end">
                                            <button type="button" class="btn btn-link btn-sm text-danger fresns-link">删除</button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>18</td>
                                        <td>
                                            <span class="badge bg-light text-dark"><i class="bi bi-envelope"></i> jie***@qq.com</span>
                                            <span class="badge bg-light text-dark"><i class="bi bi-phone"></i> 空</span>
                                        </td>
                                        <td class="text-end">
                                            <button type="button" class="btn btn-link btn-sm text-danger fresns-link">删除</button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>9527</td>
                                        <td>
                                            <span class="badge bg-light text-dark"><i class="bi bi-envelope"></i> 空</span>
                                            <span class="badge bg-light text-dark"><i class="bi bi-phone"></i> +1 626***9527</span>
                                        </td>
                                        <td class="text-end">
                                            <button type="button" class="btn btn-link btn-sm text-danger fresns-link">删除</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#newAdmin"><i class="bi bi-plus-circle-dotted"></i> 新增管理员</button>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <footer>
        <div class="copyright text-center">
            <p class="mt-5 mb-5 text-muted">&copy; 2021 Fresns</p>
        </div>
    </footer>

    <!-- Modal -->
    <div class="modal fade" id="newAdmin" tabindex="-1" aria-labelledby="newAdmin" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">新增系统管理员</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <form class="mb-3">
                        <div class="input-group">
                            <span class="input-group-text">账号</span>
                            <input type="text" class="form-control" placeholder="邮箱或者手机号">
                            <button class="btn btn-outline-secondary" type="submit" id="folderInstall-button">搜索并增加</button>
                        </div>
                        <div class="form-text"><i class="bi bi-info-circle"></i> 手机号必须为带国际区号的完整号码</div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script src="../assets/javascript/bootstrap.bundle.min.js"></script>
    <script src="../assets/javascript/backend.js"></script>
</body>

</html>